﻿using SqlSugar;

namespace IMES.Entity
{
    /// <summary>
    /// 报表实体
    /// </summary>
    [SugarTable("sys_report")]
    public class Report : BaseEntity
    {
        /// <summary>
        /// 报表关联的菜单编号
        /// </summary>
        public string MenuNo {  get; set; }
        /// <summary>
        /// 报表名称
        /// </summary>
        public string ReportName { get; set; }
        /// <summary>
        /// 备注描述
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 报表类型:(基础表格/透视表格/自定义报表)
        /// </summary>
        public string ReportType { get; set; }
        /// <summary>
        /// 程序集完整名称(自定义报表时可用)
        /// </summary>
        public string AssemblyName {  get; set; }
        /// <summary>
        /// SQL查询条件
        /// </summary>
        public string SQL {  get; set; }
        /// <summary>
        /// 报表条件列表
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<ReportCondition> Conditions { get; set; }
        /// <summary>
        /// 报表字段列表
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<ReportColumn> Columns { get; set; }
    }
}
